package com.geline.easytrans.annotation;

import com.geline.easytrans.handler.TransFieldHandler;

import java.lang.annotation.*;

/**
 * 自定义 TransFieldHandler 属性翻译
 *
 * @author: mengxin
 * @date: 2023/9/23 0:38
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface TransField {

    /**
     * 类型参数
     * @return
     */
    String catalog() default "";

    /**
     * 处理service实现类
     *
     * @return
     */
    Class<? extends TransFieldHandler> handler();

    //当满足条件时才执行SQL
    String condition() default "";
}
